<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        
        class A{
            say= ()=>{
                console.log(this);
            }
        }
        var a = new A();
        a.say();
        class B{
            say= function(){
                console.log(this);
            }
        }
        var b = new B();
        b.say();
        
        function C() {
            "use strict"
            // console.log(this);
        }
        // C.prototype.say=() =>console.log(this);
        C.prototype.say=function(){console.log(this);}
        // C();
        new C().say();
    </script>
</body>
</html>